import logging

LOG = logging.getLogger('hub-stress-test')
if __name__ == '__main__':
    logging.basicConfig(level=logging.DEBUG,
                        format="%(asctime)s %(name)s %(levelname)s %(message)s",
                        datefmt='%Y-%m-%d  %H:%M:%S %a')  # 注意月份和天数不要搞乱了，这里的格式
    LOG.debug('%(method)s %(url)s status:%(status)s time:%(elapsed)ss',
              {'method': 'method',
               'url': 'resp.url',
               'status': 'resp.status_code',
               'elapsed': 44444})

